<template>
	<view class="page-body ">
		<view class="tac mt288">
			<image src="/static/img/icon/i-success2.png" class="i-success" mode="widthFix"></image>
			<view class="h3">提现成功</view>
			<view class="p"><text>您的提现申请已经提交，预计在T+1工作日到达您实名的银行卡</text></view>
			<view class="p"></view>
			<view class="button btn-go" @click="goAccount">个人中心</view>
		</view>
	</view>
</template>

<script>
	var that;
	var timer = null;
	export default {
		data() {
			return {
				
			}
		},
		computed: {
			i18n() {
				return this.$t('login')
			}
		},
		methods: {
			pass() {
				clearInterval(timer)
				uni.navigateTo({
					url: "/pages/user/allinpay/myCenter"
				})
			},
			coutdown() {
				timer = setInterval(() => {
					if (this.second <= 1) {
						uni.redirectTo({
							url: "/pages/user/setting/setting"
						})
						clearInterval(timer)
						return false;
					}
					this.second--
				}, 1000)
			},
			goAccount() {
				clearInterval(timer)
				uni.switchTab({
					url:"/pages/tabBar/user/user"
				})
			},
		},
		onLoad(options) {
			that = this;
		},
		onShow(options) {

		},
		onReady() {
			// this.coutdown()
		},
		onBackPress(options) {
			if (options.from === 'navigateBack') {
				return false;
			}
			uni.switchTab({
				url: "/pages/index/user"
			})
			return true;
		},
		onUnload() {
			clearTimeout(timer)
		}
	}
</script>

<style lang="scss">
	.mt288 {
		margin-top: 220upx;
	}

	.i-success {
		height: 180upx;
		width: 180upx;
	}

	.h3 {
		line-height: 80upx;
		font-size: 40upx;
		color: #000;
		padding-top: 15upx;
		margin-bottom: 20upx;
	}

	.tac {
		.p {
			line-height: 40upx;
			text-align: center;
			padding: 0 40upx;
			&.note{
				width:92%;
				color:#888;
				margin:20upx auto 0;
			}
		}
	}

	.btn-go {
		background: #FF7201;
		width: 360upx;
		margin: 40upx auto;
	}
</style>
